package edu.fsu.cs.cis5930;

import java.io.Serializable;

import android.telephony.PhoneNumberUtils;

public class BusinessCard implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1786298087665011336L;
	private static final String TAG = "BusinessCard";
	public int ID;
	public String first_name;
	public String last_name;
	public String phone_number;
	public String email;
	
	public BusinessCard() {
		this(-1, "Michael", "Longchamps", "1234567", "michaellongchamps@gmail.com");

	}
	
	public BusinessCard(int i, String f, String l, String p, String e)
	{
		ID = i;
		first_name = f;
		last_name = l;
		email = e;
		phone_number = PhoneNumberUtils.formatNumber(p);
		
	}
	
	public String getName()
	{
		return last_name + ", " + first_name;
	}
	
	
	@Override
	public String toString() {
		return first_name + " " + last_name + " " + phone_number + " " + email;
	}
}
